Repository navigation
fix(linux): import P010 as single-plane images without multi-planar support - #1413
TheWeaklessOne wants to merge 1 commit into
Conversation
…upport Turnip on the Adreno 740 has no G10X6_B10X6R10X6_2PLANE_420 and no R10X6 views, and an image of a format the driver cannot sample reads as zeros, so 10-bit HDR streams through VA-API DMA-BUF came out green. When the multi-planar format is not sampleable with the frame's DRM modifier, import the planes as R16 and R16G16 images over the same DMA-BUF, as libplacebo does. Drivers that support the multi-planar format keep the existing path. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Folded into #1470 together with the other Linux decode fixes, rebased on |
10-bit HDR streams through VA-API DMA-BUF come out green on Turnip (Adreno 740, AYN Odin 2 Portal). The driver has neither
G10X6_B10X6R10X6_2PLANE_420_UNORM_3PACK16nor theR10X6plane views, and an image of a format it cannot sample reads as zeros.When the multi-planar format is not sampleable with the frame's DRM modifier, or the 10-bit plane views are missing,
import_nv12_dmabufnow imports P010 as two single-plane images over the same DMA-BUF:R16_UNORMluma andR16G16_UNORMchroma, the way libplacebo does. The 10-bit samples sit in the high bits of each 16-bit word, so the conversion runs withsample_bits = 16, as it already does forR16_UNORMVulkan frames. The acquire and release barriers cover the second image.Drivers that support the multi-planar format keep the existing path.
multi_planar_p010_samplesmakes that decision per modifier.Verification:
cargo test -p opennow-streamer-platform-linuxon cleandevwith this change: 187 passed. One failure,fixed_audio_output_never_falls_back_and_stays_isolated, is unrelated: ALSA device enumeration returns -2 on that device, also without this change.The stream test ran on a tree with other local changes for that device. Not tested on AMD or Intel, where the single-plane path should not be selected.
🤖 Generated with Claude Code